import axios from 'axios';

const queryUrl = 'xxx';

class Service {
  XXX = req => {
    return new Promise((resolve, reject) => {
      axios
        .post(queryUrl, req)
        .then(res => {
          resolve(res);
        })
        .catch(err => {
          reject(err);
        });
    });
  };
}

export default new Service();
